import request from '@/utils/request'

export default {
  listAll() {
    return request({
      url: '/orderInfo/all',
      method: 'get'
    })
  },
  listPage(currentPage, pageSize, queryOrderDTO) {
    return request({
      url: `/orderInfo/searchPage/${currentPage}/${pageSize}`,
      method: 'post',
      data: queryOrderDTO
    })
  },
  findById(id) {
    return request({
      url: `/orderInfo/${id}`,
      method: 'get'
    })
  }
}
